﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lan.Business
{
    public class DbContext
    {
        public static ISqlSugarClient Default()
        {
            ISqlSugarClient db = new SqlSugarClient(new ConnectionConfig()
            {
                ConnectionString = "server=39.105.189.49,21433;uid=sa;pwd=sltd@Gps;database=ShuangYan",
                DbType = DbType.SqlServer,
                IsAutoCloseConnection = true
            });

            return db;
        }
    }
}
